package kr.hkit.powerjava.chapter12.Programming;

public class Triangle extends Shape implements Movable, Drawable{

	private double base, height;
	
	@Override
	public void draw() {
		System.out.println("삼각형을 그리다");
	}

	@Override
	public void move(int dx, int dy) {
		System.out.printf("(%d, %d)에서", this.x, this.y);
		this.x += dx;
		this.y += dy;
		System.out.printf("(%d, %d)로 이동", this.x, this.y);
	}

}
